#include <assert.h>
#include <iostream>
#include <SDL.h>
#include "Image.h"
#include "Screen.h"

Image::Image()
{
	m_surface = 0;
}

bool Image::Load(std::string fileName)
{
	m_surface = IMG_Load(fileName.c_str());
	assert(m_surface);
	return (m_surface != 0);

	std::cout << "Width is: " << m_surface->w << "\n";
}

void Image::Draw(int x, int y, Screen* theScreen)
{
	SDL_BlitSurface(m_surface, 0, theScreen->GetSurface(), 0);
}
